package jy.hibernate.beans;

import java.util.Date;
import java.util.Set;

/**
 * order_form entity
 * @author tingzi
 *
 */
public class Order_form implements java.io.Serializable{
	private static final long serialVersionUID = 8419406471104379405L;
	//Fields
	private Integer order_form_id;//自增长
	private String order_number;
	private Client client;
	private Date end_date=new Date("1870-00-00");
	private Date start_date=new Date("1870-00-00");
	private Integer status=0;//0，准备货物：1，在途中默认为0
	private Set<Order_form_detail> order_form_details;
	private Set<Porter_workload> porter_workloads;
	private Integer order_type=0;//入库：0 出库：1

	public Integer getOrder_form_id() {
		return order_form_id;
	}

	public void setOrder_form_id(Integer order_form_id) {
		this.order_form_id = order_form_id;
	}

	public String getOrder_number() {
		return order_number;
	}

	public void setOrder_number(String order_number) {
		this.order_number = order_number;
	}

	public Client getClient() {
		return client;
	}

	public void setClient(Client client) {
		this.client = client;
	}

	public Date getEnd_date() {
		return end_date;
	}

	public void setEnd_date(Date end_date) {
		this.end_date = end_date;
	}

	public Date getStart_date() {
		return start_date;
	}

	public void setStart_date(Date start_date) {
		this.start_date = start_date;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getOrder_type() {
		return order_type;
	}

	public void setOrder_type(Integer order_type) {
		this.order_type = order_type;
	}

	public Order_form(String order_number, Client client) {
		super();
		this.order_number = order_number;
		this.client = client;
	}

	@Override
	public String toString() {
		
		return "order_number:"+order_number+"/tclient:"+client.getCompany()+"/tend_date:"
		+end_date+"/tstart_date:"+start_date+"/tstatues:"+status;
	}

	public Set<Order_form_detail> getOrder_form_details() {
		return order_form_details;
	}

	public void setOrder_form_details(Set<Order_form_detail> order_form_details) {
		this.order_form_details = order_form_details;
	}

	public Set<Porter_workload> getPorter_workloads() {
		return porter_workloads;
	}

	public void setPorter_workloads(Set<Porter_workload> porter_workloads) {
		this.porter_workloads = porter_workloads;
	}
	


	
	

}
